# uncompyle6 version 3.2.3
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.8 |Anaconda custom (64-bit)| (default, Feb 21 2019, 18:30:04) [MSC v.1916 64 bit (AMD64)]
# Embedded file name: api\descriptors\scan.py
from collections import OrderedDict

data = OrderedDict(
    [
        ("basePath", "/worker/v1"),
        ("consumes", ["application/json"]),
        (
            "definitions",
            OrderedDict(
                [
                    (
                        "Attachment",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            ("name", OrderedDict([("type", "string")])),
                                            (
                                                "url",
                                                OrderedDict(
                                                    [
                                                        ("format", "url"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["name", "url"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "CustomCookies",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "cookie",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "url",
                                                OrderedDict(
                                                    [
                                                        ("format", "url"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    ("EmptyObject", OrderedDict([("type", "object")])),
                    (
                        "ErrorDescriptionResponse",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "code",
                                                OrderedDict([("type", "integer")]),
                                            ),
                                            (
                                                "details",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [("type", "string")]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "reason",
                                                OrderedDict([("type", "string")]),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["reason", "code"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "ExtendedJobStatus",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "attachments",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "$ref",
                                                                        "#/definitions/Attachment",
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "fail_reason",
                                                OrderedDict([("type", "string")]),
                                            ),
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "JobDescription",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "additional_targets",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "$ref",
                                                                        "#/definitions/Target",
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "bxss_scan_id",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "bxss_user_id",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "debug",
                                                OrderedDict([("type", "boolean")]),
                                            ),
                                            (
                                                "initial_state",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "job_id",
                                                OrderedDict(
                                                    [
                                                        ("format", "uuid"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "main_target",
                                                OrderedDict(
                                                    [("$ref", "#/definitions/Target")]
                                                ),
                                            ),
                                            (
                                                "mode",
                                                OrderedDict(
                                                    [
                                                        ("type", "string"),
                                                        ("x-deployment", "ovs"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "scan_profile",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "status_api_key",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "status_api_url",
                                                OrderedDict(
                                                    [
                                                        ("format", "url"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "user_interaction",
                                                OrderedDict([("type", "boolean")]),
                                            ),
                                            (
                                                "worker_identifier",
                                                OrderedDict(
                                                    [
                                                        ("format", "md5"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                (
                                    "required",
                                    [
                                        "job_id",
                                        "scan_profile",
                                        "status_api_url",
                                        "status_api_key",
                                        "main_target",
                                    ],
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "JobIdentifier",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "job_id",
                                                OrderedDict(
                                                    [
                                                        ("format", "uuid"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            )
                                        ]
                                    ),
                                ),
                                ("required", ["job_id"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "JobIdentifierList",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "job_ids",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    ("format", "uuid"),
                                                                    ("type", "string"),
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            )
                                        ]
                                    ),
                                ),
                                ("required", ["job_ids"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "JobStatus",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "extended_status",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "$ref",
                                                            "#/definitions/ExtendedJobStatus",
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "job_id",
                                                OrderedDict(
                                                    [
                                                        ("format", "uuid"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "status",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "enum",
                                                            [
                                                                "not_found",
                                                                "preparing",
                                                                "executing",
                                                                "aborting",
                                                                "aborted",
                                                                "finished",
                                                                "failed",
                                                                "pausing",
                                                                "paused",
                                                            ],
                                                        ),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["job_id", "status"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "JobStatuses",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "statuses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "$ref",
                                                                        "#/definitions/JobStatus",
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            )
                                        ]
                                    ),
                                ),
                                ("required", ["statuses"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "ProxySettings",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "address",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "enabled",
                                                OrderedDict(
                                                    [
                                                        ("default", False),
                                                        ("type", "boolean"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "password",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "port",
                                                OrderedDict([("type", "integer")]),
                                            ),
                                            (
                                                "protocol",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "username",
                                                OrderedDict([("type", "string")]),
                                            ),
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "SiteLogin",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "credentials",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "$ref",
                                                            "#/definitions/UserCredentials",
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "kind",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "enum",
                                                            [
                                                                "none",
                                                                "automatic",
                                                                "sequence",
                                                            ],
                                                        ),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["kind"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "SSHCredentials",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "key_password",
                                                OrderedDict(
                                                    [
                                                        ("maxLength", 128),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "kind",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "enum",
                                                            ["none", "key", "password"],
                                                        ),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "password",
                                                OrderedDict(
                                                    [
                                                        ("maxLength", 128),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "port",
                                                OrderedDict(
                                                    [
                                                        ("default", 22),
                                                        ("format", "int32"),
                                                        ("type", "integer"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "ssh_key",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "username",
                                                OrderedDict(
                                                    [
                                                        ("maxLength", 128),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "Target",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "address",
                                                OrderedDict(
                                                    [
                                                        ("format", "host|url"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "client_certificate",
                                                OrderedDict(
                                                    [
                                                        ("format", "url|null"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "configuration",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "$ref",
                                                            "#/definitions/TargetConfiguration",
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "imports",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    ("format", "url"),
                                                                    ("type", "string"),
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "login_sequence",
                                                OrderedDict(
                                                    [
                                                        ("format", "any"),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["address", "configuration"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "TargetConfiguration",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "authentication",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "$ref",
                                                            "#/definitions/UserCredentials",
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "case_sensitive",
                                                OrderedDict(
                                                    [
                                                        ("enum", ["yes", "no", "auto"]),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "client_certificate_password",
                                                OrderedDict(
                                                    [
                                                        ("maxLength", 128),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "custom_cookies",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "$ref",
                                                                        "#/definitions/CustomCookies",
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "custom_headers",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "format",
                                                                        "header",
                                                                    ),
                                                                    ("type", "string"),
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "debug",
                                                OrderedDict([("type", "boolean")]),
                                            ),
                                            (
                                                "excluded_paths",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "format",
                                                                        "path_match",
                                                                    ),
                                                                    ("type", "string"),
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "limit_crawler_scope",
                                                OrderedDict([("type", "boolean")]),
                                            ),
                                            (
                                                "login",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "$ref",
                                                            "#/definitions/SiteLogin",
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "proxy",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "$ref",
                                                            "#/definitions/ProxySettings",
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "scan_speed",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "enum",
                                                            [
                                                                "fast",
                                                                "moderate",
                                                                "slow",
                                                                "sequential",
                                                            ],
                                                        ),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "sensor",
                                                OrderedDict([("type", "boolean")]),
                                            ),
                                            (
                                                "sensor_secret",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "ssh_credentials",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "$ref",
                                                            "#/definitions/SSHCredentials",
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "technologies",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "enum",
                                                                        [
                                                                            "ASP",
                                                                            "ASP.NET",
                                                                            "PHP",
                                                                            "Perl",
                                                                            "Java/J2EE",
                                                                            "ColdFusion/Jrun",
                                                                            "Python",
                                                                            "Rails",
                                                                            "FrontPage",
                                                                            "Node.js",
                                                                        ],
                                                                    ),
                                                                    ("type", "string"),
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "user_agent",
                                                OrderedDict([("type", "string")]),
                                            ),
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "UserCredentials",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "enabled",
                                                OrderedDict([("type", "boolean")]),
                                            ),
                                            (
                                                "password",
                                                OrderedDict(
                                                    [
                                                        ("maxLength", 128),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "username",
                                                OrderedDict(
                                                    [
                                                        ("maxLength", 128),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["enabled"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "WorkerActivationData",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "activation_data",
                                                OrderedDict([("type", "string")]),
                                            )
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "WorkerConnectionInfo",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "scanning_app",
                                                OrderedDict(
                                                    [
                                                        ("enum", ["wvs", "ovas"]),
                                                        ("type", "string"),
                                                    ]
                                                ),
                                            )
                                        ]
                                    ),
                                ),
                                ("type", "object"),
                            ]
                        ),
                    ),
                    (
                        "WorkerStatus",
                        OrderedDict(
                            [
                                (
                                    "properties",
                                    OrderedDict(
                                        [
                                            (
                                                "app_version",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "authorization",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "empty_slots",
                                                OrderedDict([("type", "integer")]),
                                            ),
                                            (
                                                "job_statuses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            "items",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "$ref",
                                                                        "#/definitions/JobStatus",
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        ("type", "array"),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "license_hash",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "status",
                                                OrderedDict([("type", "string")]),
                                            ),
                                            (
                                                "total_slots",
                                                OrderedDict([("type", "integer")]),
                                            ),
                                        ]
                                    ),
                                ),
                                ("required", ["total_slots", "empty_slots"]),
                                ("type", "object"),
                            ]
                        ),
                    ),
                ]
            ),
        ),
        ("host", "acunetix-worker"),
        (
            "info",
            OrderedDict([("title", "Acunetix Scan Worker API"), ("version", "1.0.0")]),
        ),
        (
            "parameters",
            OrderedDict(
                [
                    (
                        "job_id",
                        OrderedDict(
                            [
                                ("in", "path"),
                                ("name", "job_id"),
                                ("required", True),
                                ("type", "string"),
                            ]
                        ),
                    ),
                    (
                        "scanning_app",
                        OrderedDict(
                            [
                                ("enum", ["wvs", "ovas"]),
                                ("in", "path"),
                                ("name", "scanning_app"),
                                ("required", True),
                                ("type", "string"),
                            ]
                        ),
                    ),
                    (
                        "worker_id",
                        OrderedDict(
                            [
                                ("format", "uuid"),
                                ("in", "path"),
                                ("name", "worker_id"),
                                ("required", True),
                                ("type", "string"),
                            ]
                        ),
                    ),
                ]
            ),
        ),
        (
            "paths",
            OrderedDict(
                [
                    (
                        "/{scanning_app}/abort_job",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "abort_job"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            (
                                                                "$ref",
                                                                "#/parameters/scanning_app",
                                                            )
                                                        ]
                                                    ),
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            ("required", True),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/JobIdentifier",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    ),
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/JobStatus",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["ScanApiHandler"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/delete_job",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "delete_job"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            (
                                                                "$ref",
                                                                "#/parameters/scanning_app",
                                                            )
                                                        ]
                                                    ),
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            ("required", True),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/JobIdentifier",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    ),
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (204, OrderedDict()),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["ScanApiHandler"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/get_job_status",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "get_job_status"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            (
                                                                "$ref",
                                                                "#/parameters/scanning_app",
                                                            )
                                                        ]
                                                    ),
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            ("required", True),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/JobIdentifierList",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    ),
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/JobStatuses",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["ScanApiHandler"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/pause_job",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "pause_job"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            (
                                                                "$ref",
                                                                "#/parameters/scanning_app",
                                                            )
                                                        ]
                                                    ),
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            ("required", True),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/JobIdentifier",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    ),
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/JobStatus",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["ScanApiHandler"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/start_job",
                        OrderedDict(
                            [
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "start_job"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            (
                                                                "$ref",
                                                                "#/parameters/scanning_app",
                                                            )
                                                        ]
                                                    ),
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            ("required", True),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/JobDescription",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    ),
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerStatus",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        (
                                                            503,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerStatus",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                        (
                                                            "default",
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/ErrorDescriptionResponse",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        ),
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["ScanApiHandler"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/worker",
                        OrderedDict(
                            [
                                (
                                    "delete",
                                    OrderedDict(
                                        [
                                            ("operationId", "deactivate_worker"),
                                            (
                                                "responses",
                                                OrderedDict([(204, OrderedDict())]),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["WorkerApiHandler"]),
                                        ]
                                    ),
                                ),
                                (
                                    "get",
                                    OrderedDict(
                                        [
                                            ("operationId", "get_worker_status"),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerStatus",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["WorkerApiHandler"]),
                                        ]
                                    ),
                                ),
                                (
                                    "parameters",
                                    [
                                        OrderedDict(
                                            [("$ref", "#/parameters/scanning_app")]
                                        )
                                    ],
                                ),
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "activate_worker"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            ("required", True),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/EmptyObject",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerStatus",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["WorkerApiHandler"]),
                                        ]
                                    ),
                                ),
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/worker/add_licence",
                        OrderedDict(
                            [
                                (
                                    "parameters",
                                    [
                                        OrderedDict(
                                            [("$ref", "#/parameters/scanning_app")]
                                        )
                                    ],
                                ),
                                (
                                    "post",
                                    OrderedDict(
                                        [
                                            ("operationId", "add_licence"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            ("in", "body"),
                                                            ("name", "body"),
                                                            ("required", True),
                                                            (
                                                                "schema",
                                                                OrderedDict(
                                                                    [
                                                                        (
                                                                            "$ref",
                                                                            "#/definitions/WorkerActivationData",
                                                                        )
                                                                    ]
                                                                ),
                                                            ),
                                                        ]
                                                    )
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerStatus",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["WorkerApiHandler"]),
                                        ]
                                    ),
                                ),
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/worker/connect",
                        OrderedDict(
                            [
                                (
                                    "get",
                                    OrderedDict(
                                        [
                                            ("operationId", "check_worker_connection"),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "$ref",
                                                                                    "#/definitions/WorkerConnectionInfo",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            ("tags", ["WorkerApiHandler"]),
                                        ]
                                    ),
                                ),
                                (
                                    "parameters",
                                    [
                                        OrderedDict(
                                            [("$ref", "#/parameters/scanning_app")]
                                        )
                                    ],
                                ),
                            ]
                        ),
                    ),
                    (
                        "/{scanning_app}/{job_id}/state_db",
                        OrderedDict(
                            [
                                (
                                    "get",
                                    OrderedDict(
                                        [
                                            ("operationId", "get_scan_state_db"),
                                            (
                                                "parameters",
                                                [
                                                    OrderedDict(
                                                        [
                                                            (
                                                                "$ref",
                                                                "#/parameters/scanning_app",
                                                            )
                                                        ]
                                                    ),
                                                    OrderedDict(
                                                        [
                                                            (
                                                                "$ref",
                                                                "#/parameters/job_id",
                                                            )
                                                        ]
                                                    ),
                                                ],
                                            ),
                                            (
                                                "responses",
                                                OrderedDict(
                                                    [
                                                        (
                                                            200,
                                                            OrderedDict(
                                                                [
                                                                    (
                                                                        "schema",
                                                                        OrderedDict(
                                                                            [
                                                                                (
                                                                                    "type",
                                                                                    "file",
                                                                                )
                                                                            ]
                                                                        ),
                                                                    )
                                                                ]
                                                            ),
                                                        )
                                                    ]
                                                ),
                                            ),
                                            (
                                                "security",
                                                [
                                                    OrderedDict(
                                                        [("scanner_authorization", [])]
                                                    )
                                                ],
                                            ),
                                            ("tags", ["ScanApiHandler"]),
                                        ]
                                    ),
                                )
                            ]
                        ),
                    ),
                ]
            ),
        ),
        ("produces", ["application/json"]),
        ("schemes", ["https", "http"]),
        (
            "securityDefinitions",
            OrderedDict(
                [
                    (
                        "scanner_authorization",
                        OrderedDict(
                            [("in", "header"), ("name", "X-Auth"), ("type", "apiKey")]
                        ),
                    )
                ]
            ),
        ),
        ("swagger", "2.0"),
    ]
)
